#include "OpenMPTest.h"
#include <iostream>
namespace Test {
	void OpenMPTest::Enter()
	{
#pragma region OpenMPTest
		int total = 0;
		std::vector<int> nums = { 1,2,3,4,5,6 };
#pragma omp parallel for schedule(static)  
		for (int i = 0; i < nums.size(); i++)
		{
			std::cout << nums[i] << std::endl;
			total += nums[i];
		}
		std::cout << total << std::endl;
#pragma endregion
	}
}

